
package org.cuit.seon.explore.controller.son;

import lombok.extern.slf4j.Slf4j;
import org.cuit.seon.explore.annotation.AopAnnotationPointCutExplore;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wuwen
 */
@Slf4j
@RestController
@AopAnnotationPointCutExplore
public class Java17Controller {

    @GetMapping("/666")
    public String jdk17() {
        log.info("执行方法");
//        // textBlock
//        String textBlockTest = """
//                this is a text block
//                hhhhhh
//                """;
//        System.out.println(textBlockTest);
//        // new grammar of switch
//        String name = "xiao";
//        int ret = switch (name) {
//            case "xiao" -> {
//                System.out.println(666);
//                yield 0;
//            }
//
//            default -> 1;
//        };

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

        return "222";
    }
}